import { ref } from 'vue'


const paginationParams = ref({
  total: 0,
  pageNum: 1,
  pageSize: 10,
})


const orderSelect = [
  {
    label: '代理商',
    model: 'agencyId',
    placeholder: '请选择',
    url: 'base/agency/list',
    type: 'select',
    message: '请选择代理商',
    selectData: []
  },
  { 
    label: '年份',
    model: 'year',
    placeholder: '请选择',
    type: 'select',
    dict: 'set_year_time',
    selectData: []
  },
  { 
    label: '月份',
    model: 'month',
    placeholder: '请选择',
    type: 'select',
    dict: 'set_moon_time',
    selectData: []
  },
  { 
    label: '状态',
    model: 'status',
    type: 'select',
    dict: 'finRepor_sta_type'
  },
  {
    label: '省份',
    model: 'province',
    placeholder: '请选择',
    type: 'select',
    url: 'base/city/get-province',
    message: '请选择类别',
    selectData: []
  },
  // {
  //   label: '城市',
  //   model: 'province',
  //   placeholder: '请选择',
  //   type: 'select',
  //   url: 'base/city/get-province',
  //   message: '请选择类别',
  //   selectData: []
  // },
]

const addorderSelect = [
  {
    label: '消息标题',
    model: 'title',
    message: '请输入消息标题',
    required: true,
    placeholder: '请输入',
    type: 'input',
    span: 24
  },
  {
    label: '所属系统',
    model: 'toSystem',
    placeholder: '请选择',
    type: 'select',
    required: true,
    message: '请选择所属系统',
    selectData: [
      {
        label: '所有',
        value: '0'
      },
      {
        label: '管理后台',
        value: '1'
      },
      {
        label: '小程序',
        value: '2'
      }
    ],
    span: 24
  },
  {
    label: '内容',
    model: 'content',
    message: '请输入内容',
    required: true,
    placeholder: '请输入',
    type: 'textarea',
    span: 24
  },
  {
    label: '收件人',
    model: 'userIdList',
    placeholder: '请选择',
    type: 'selectMultiple',
    required: true,
    url: '/system/user/list',
    message: '请选择收件人',
    selectData: [],
    labels: 'userName',
    value: 'userId',
    span: 24
  },
]


const addpaginationParams = ref({
  userIdList: [],
})

export default { paginationParams, orderSelect, addorderSelect, addpaginationParams }

